package mybox.engine.astern;

import mybox.engine.Circle;
import mybox.engine.Figur;
import mybox.engine.File4Qcad;
import mybox.engine.QVector;

public class Knoten implements Figur{

	
	public static double RADIUS=2;
	File4Qcad file4qcad;
	int status;
	
	public static int STATUS_FULL=1;
	
	double xPos;
	double yPos;
	Circle umriss;
	
	public static int EAST=0;
	public static int NORTHEAST=1;
	public static int NORTH=2;
	public static int NORTHWEST=3;
	public static int WEST=4;
	public static int SOUTHWEST=5;
	public static int SOUTH=6;
	public static int SOUTHEAST=7;
	
	Knoten[] nachbarn = new Knoten[8];
	
	public Knoten(File4Qcad file4qcad, double xPos, double yPos) {
		this.xPos=xPos;
		this.yPos=yPos;
		this.file4qcad=file4qcad;
		status=0;	
		
		umriss=new Circle(file4qcad, new QVector(yPos, xPos), RADIUS);
		
	}
	@Override
	public void draw() {
		
		umriss.draw();
		
		
		/*
		for (Knoten nachbar : nachbarn) {
			if (nachbar!=null)
			(new Line(file4qcad, new QVector(yPos,xPos), new QVector(nachbar.yPos,nachbar.xPos))).draw();
		}*/
	}
}
